package com.mrli.cat.weather.activity;


import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.ActionBarActivity;
import android.support.v7.widget.Toolbar;
import android.view.MenuItem;
import android.view.View;

import com.mrli.cat.weather.R;

public class WeatherPreferenceActivity extends ActionBarActivity {
    //初始化设置
    public final static String INIT_KEY = "init";
    //温度单位
    public final static String METRIC_KEY = "metric";
    //当前定位城市
    public final static String LOCAL_CITY = "local";
    //预报天数
    public final static String FORECAST_DAY = "cnt";

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_settings);
        android.support.v7.widget.Toolbar toolbar = (android.support.v7.widget.Toolbar) findViewById(R.id.awesome_toolbar);
        toolbar.setTitle(getString(R.string.action_settings));
        toolbar.setNavigationIcon(R.drawable.ic_arrow_back_white_24dp);
        toolbar.setNavigationOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                onBackPressed();
            }
        });
    }
}

